﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:DataStore_Repositories="clr-namespace:DataStore.Repositories;assembly=DataStore" 
    xmlns:local="clr-namespace:UI" 
    xmlns:controls="clr-namespace:UI.Controls"
    x:Class="UI.NewBook"
    Title="New book" 
    Height="424" 
    Width="779" 
    WindowStartupLocation="CenterOwner" 
    ShowInTaskbar="False" 
    WindowStyle="SingleBorderWindow" 
    ResizeMode="CanResizeWithGrip" >
    
    <DockPanel x:Name="contentDockPanel" >
        <DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
    		<controls:AddCancel x:Name="addCancel" DockPanel.Dock="Right" AddClicked="addButton_Click" CancelClicked="cancelButton_Click"  />
    		<Button Content="Update..." Margin="75,0,0,0" VerticalAlignment="Center" Height="25" Click="Button_Click" />
    	</DockPanel>
        <local:BookControl x:Name="addBookControl" d:LayoutOverrides="Height" />
    </DockPanel>

</Window>
